package com.xinqi.common.core.enums;

/**
 * 用户绑定第三方类型枚举
 *
 * @version V1.0
 * @Title:
 * @ClassName: com.xinqi.common.core.enums.UeUserThirdBindTypeEnum.java
 * @Description:
 * @Copyright 2022-2023 www.xingqiclass.com - Powered By 星奇科技
 * @author: dgyu
 * @date: 2023-03-09 16:28
 */
public enum UeUserThirdBindTypeEnum {

    RONGYUN("1", "融云"),
    WECHAT("2", "微信"),
    QQ("3", "qq"),
    APPLEID("4", "苹果账号");

    private String type;
    private String desc;

    UeUserThirdBindTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static UeUserThirdBindTypeEnum getType(String type) {
        for (UeUserThirdBindTypeEnum en : UeUserThirdBindTypeEnum.values()) {
            if (type.equals(en.getType())) {
                return en;
            }
        }
        return null;
    }

    public String getType() {
        return type;
    }
}
